package com.zxh.util;

import com.zxh.baidu.BaiduUtil;
import org.apache.log4j.PropertyConfigurator;

/**
 * Created by zhangxh on 2016/7/8.
 */
public class AppInit{

    private final String log4j= "properties/log4j.properties";

    private AppInit(){}
    public static AppInit getInstance(){
        return AppInitHolder.INSTANCE;
    }
    public void init(){
        PropertyConfigurator.configure(PathUtil.getPath(log4j));
        Constant.init();
        HttpPoolUtil.init();
        BaiduUtil.init();

    }
    private static final class AppInitHolder{
        private static final AppInit INSTANCE=new AppInit();
    }




}
